package git.determinal.template;

import git.determinal.template.service.UserService;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @Description
 * @Author determinal
 * @Date 2024/6/20 下午2:32
 */
public class BeansTest {
    public static void main(String[] args) {
        ApplicationContext applicationContext = new ClassPathXmlApplicationContext("beans.xml");
        Object userDao1 = applicationContext.getBean("userDao2");
        System.out.println(userDao1);
    }
}
